package cn.edu.whu.irlab.service.impl;

import cn.edu.whu.irlab.dao.UserStatisticMapper;
import cn.edu.whu.irlab.model.UserStatistic;
import cn.edu.whu.irlab.service.UserStatisticService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Roger on 2016/8/5.
 */
@Service
public class UserStatisticServiceImpl implements UserStatisticService {

    @Autowired
    private UserStatisticMapper usMapper;

    @Override
    public int deleteByPrimaryKey(Integer userId) {
        return usMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(UserStatistic record) {
        return usMapper.insert(record);
    }

    @Override
    public int insertSelective(UserStatistic record) {
        return usMapper.insertSelective(record);
    }

    @Override
    public UserStatistic selectByPrimaryKey(Integer userId) {
        return usMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserStatistic record) {
        return usMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserStatistic record) {
        return usMapper.updateByPrimaryKey(record);
    }
}
